import axios from 'axios'

var request = axios.create({
    baseURL:'http://127.0.0.1:5000',
    timeout:10000
})

request.interceptors.request.use(config => {
    return config 
},error=>{
    return Promise.reject(error)
})

request.interceptors.response.use((response) => {
    return response
}, function (error) {
    return Promise.reject(error)
})

export default request